// 轮播图相关的接口
import instance from "@/utils/request";

// 轮播图列表接口
export function bannerlistApi(data?: null) {
    return instance({
        url: '/admin/banner/list',
        method: 'get',
        params: data
    })
}

// 添加轮播图
export function addBannerApi(data: {
    img: string,
    alt: string,
    link: string
}) {
    return instance({
        url: '/admin/banner/add',
        method: 'post',
        data
    })
}

//删除轮播图
export function delBannerApi(data: {
    bannerid: string
}) {
    return instance({
        url: '/admin/banner/delete',
        method: 'get',
        params: data
    })
}